//
//  NWTempViewController.swift
//  Weibo
//
//  Created by Northwan on 16/1/20.
//  Copyright © 2016年 Northwan. All rights reserved.
//

import UIKit

class NWTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        navigationItem.title = "第\(navigationController?.childViewControllers.count ?? 0)级界面"
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "PUSH", target: self, action: "push")
        
        view.backgroundColor = UIColor.whiteColor()
    }
    
    @objc private func push(){
        navigationController?.pushViewController(NWTempViewController(), animated: true)
    }
}
